Skip to content

PyPI rust builds#202

Merged
lispandfound merged 7 commits intomasterfrom
rust_build
Feb 16, 2026
Merged

PyPI rust builds#202
lispandfound merged 7 commits intomasterfrom
rust_build

Conversation

@lispandfound
Copy link
Contributor

Makes some changes to PyPI publication script to:

  1. Build for Mac OS, Windows and Linux,
  2. Build for python 3.12, 3.13, 3.14.

So wheels now exist for all 9 combinations of those operating systems and python versions. This is a necessary pre-requisite for the next release given it now includes a rust extension.

@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@lispandfound
Copy link
Contributor Author

Removed unused parameter because ruff was complaining

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the PyPI publication workflow to support Rust extensions by adding cross-platform wheel building for macOS, Windows, and Linux. It also removes a deprecated parameter from the pseudo_spectral_acceleration function that is no longer needed due to changes in memory management handled by the Rust parallel work scheduler (Rayon).

Changes:

  • Restructured GitHub Actions workflow to build platform-specific wheels using cibuildwheel for Python 3.12, 3.13, and 3.14
  • Added Rust toolchain setup for all platforms with proper configuration for Linux containers
  • Removed unused psa_rotd_maximum_memory_allocation parameter and its documentation from the pseudo_spectral_acceleration function

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/publish-PyPI.yml Split build job into separate wheel building (multi-platform) and sdist building jobs; configured cibuildwheel to build for multiple Python versions and architectures with Rust support
IM/ims.py Removed unused psa_rotd_maximum_memory_allocation parameter and the now-unnecessary Optional import from typing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lispandfound lispandfound merged commit acab0cf into master Feb 16, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants